Static Logger class for outputting messages at various levels.


Properties


ShowDebug

bool ShowDebug

Returns true/false is configured to show debug messages. Can be used to reduce garbage.


ShowError

bool ShowError

Returns true/false is configured to show error messages. Can be used to reduce garbage.


ShowInfo

bool ShowInfo

Returns true/false is configured to show info messages. Can be used to reduce garbage.


ShowIO

bool ShowIO

Returns true/false is configured to show file input/output messages. Can be used to reduce garbage.


ShowWarning

bool ShowWarning

Returns true/false is configured to show warning messages. Can be used to reduce garbage.


Methods


Debug

static void Debug(string message)

LogLevel 0 - use for temporary debugging.


DebugIfValueChanged

static bool DebugIfValueChanged(string id, string newValue)  
static bool DebugIfValueChanged(string id, int newValue)

Outputs a debug message and returns true when the given value changes.


DebugTimerStart

static void DebugTimerStart()

Starts a StopWatch (timer) for simple debugging purposes.


DebugTimerStop

static void DebugTimerStop(string id)

Stops a StopWatch (timer) for simple debugging purposes and outputs message with time taken.


Error

static void Error(string message)

LogLevel 4 - Error.


Fatal

static void Fatal(string message)

LogLevel 5 - Fatal.


Info

static void Info(string message)

LogLevel 1 - general information.


IO

static void IO(string message)

LogLevel 2 - Input/Output.


Warning

static void Warning(string message)

LogLevel 3 - Warning.